//
//  KKDiscoverViewController.swift
//  KKWeibo
//
//  Created by kassia on 16/7/9.
//  Copyright © 2016年 kassia. All rights reserved.
//

import UIKit

class KKDiscoverViewController: KKVisitorViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        if isLogin {
            
        } else {
            
            //未登录状态下的文字图图片.
            vistorView?.updataCostomerView("登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过", imageName: "visitordiscover_image_message")
        }
   
        setUpUI()
    }
    
    private func setUpUI() {
        //创建搜索框
        let searchView = KKDiscoverSearchView.searchView()
        //宽度
        searchView.weight = self.view.weight
        //赋值
        navigationItem.titleView = searchView
        
         tabBarItem.badgeValue = "哈哈"
        
    }
}
